package Tz;
public class AllAthlete extends Athlete implements Shoot,Sprint,Dive{

    public AllAthlete(){}
    public AllAthlete(String name,int age){
        super(name, age);
    }

    @Override
    public void dive() {
        System.out.println(this.getName()+"会跳水");
    }

    @Override
    public void sprint() {
        System.out.println(this.getName()+"会短跑");
    }

    @Override
    public void shoot() {
        System.out.println(this.getName()+"会射击");
    }
}
